﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ListPage.Master" AutoEventWireup="true"
    CodeBehind="List_Mine.aspx.cs" Inherits="IMIS_ERP.Web.Factory_Info.List_Mine" %>

<%@ Register Src="../Controls/Pagination.ascx" TagName="Pagination" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="top">
        <div id="t_left">
            <img src="../images/tab_t_l.gif" />
            <span class="f1">您当前的位置</span>：【加工中心管理】-【查看信息】
        </div>
        <div id="t_right">
            <asp:CheckBox ID="ckbAll" runat="server" AutoPostBack="True" OnCheckedChanged="ckbAll_CheckedChanged" />全选
            <img src="../images/ico_add.gif" align="middle" />
            <a href="Add.aspx">新增</a>
            <img src="../images/ico_del.gif" align="middle" />
            <asp:LinkButton ID="lbtnDel" runat="server" OnClick="lbtnDel_Click">删除</asp:LinkButton>
        </div>
    </div>
    <div id="middle">
        <div id="m_left">
        </div>
        <asp:GridView ID="GV" CssClass="GV" runat="server" CellPadding="3" AutoGenerateColumns="False"
            DataKeyNames="fiID" OnRowCreated="GV_RowCreated" OnRowDeleting="GV_RowDeleting">
            <Columns>
                <asp:TemplateField ItemStyle-CssClass="ckb">
                    <HeaderTemplate>
                        <asp:CheckBox ID="ckbAll" runat="server" AutoPostBack="true" OnCheckedChanged="ckbAll_CheckedChanged1" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="ckbDel" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="fiID" HeaderText="加工中心编号" />
                <asp:BoundField DataField="fiName" HeaderText="名称" />
                <asp:BoundField DataField="fIFpID" HeaderText="负责人" />
                <asp:BoundField DataField="fiAddress" HeaderText="地址" />
                <asp:BoundField DataField="fiPhone" HeaderText="电话" />
                <asp:BoundField DataField="fiCredit" HeaderText="信用度" />
                <asp:BoundField DataField="fiHuID" HeaderText="业务员" />
                <asp:TemplateField HeaderText="基本操作" ItemStyle-CssClass="operate">
                    <ItemTemplate>
                        &nbsp; &nbsp;<img src="../images/ico_modify.gif" /><a href='<%# Eval("fiID", "Show.aspx?id={0}") %>'>详细</a>
                        &nbsp; &nbsp;<img src="../images/ico_edt.gif" /><a href='<%# Eval("fiID", "Modify.aspx?id={0}") %>'>编辑</a>
                        &nbsp; &nbsp;<img src="../images/ico_delete.gif" /><asp:LinkButton ID="LinkButton1"
                            runat="server" CausesValidation="False" CommandName="Delete" OnClientClick="return confirm('确定删除吗？')"
                            Text="删除"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <RowStyle CssClass="gv_row" />
            <SelectedRowStyle CssClass="gv_sel" />
            <PagerStyle CssClass="gv_pag" />
            <HeaderStyle CssClass="gv_hea" />
            <AlternatingRowStyle CssClass="gv_alt" />
            <FooterStyle CssClass="gv_foo" />
        </asp:GridView>
        <div id="m_right">
        </div>
    </div>
    <div id="bottom">
        <div id="b_left">
            <span class="f2">&nbsp;&nbsp;共有
                <asp:Label ID="lblRecordCount" runat="server"></asp:Label>
                条记录，当前第
                <asp:Label ID="lblPageNow" runat="server"></asp:Label>/<asp:Label ID="lblPageCount"
                    runat="server"></asp:Label>
                页</span>
        </div>
        <div id="b_right">
            <uc1:Pagination ID="Pagination1" runat="server" />
        </div>
    </div>
    &nbsp; &nbsp;&nbsp; &nbsp;<asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label><br />
    <div class="query">
        <span class="f1">关键字：</span>
        <asp:DropDownList ID="ddlSearch" runat="server">
            <asp:ListItem Value="fiID">加工中心编号</asp:ListItem>
            <asp:ListItem Value="fiName">名称</asp:ListItem>
            <asp:ListItem Value="fIFpID">负责人</asp:ListItem>
             <asp:ListItem Value="fiAddress">地址</asp:ListItem>
            <asp:ListItem Value="fiHuID">业务员</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="txtSearch" name="txtSearch" runat="server"></asp:TextBox>
        &nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click"></asp:Button>
        <asp:Button ID="btnCancel" runat="server" Text="清空" OnClick="btnCancel_Click" />
    </div>
</asp:Content>
